import request from '../../../utils/request'

function getDeviceType() {
  return request({
    url: '/jklc/deviceType/getList',
    method: 'get'
  })
}

function addDeviceType(data) {
  return request({
    url: '/jklc/deviceType',
    method: 'post',
    data
  })
}

function editDeviceType(data) {
  return request({
    url: '/jklc/deviceType',
    method: 'put',
    data
  })
}

function delDeviceType(data) {
  return request({
    url: '/jklc/deviceType',
    method: 'delete',
    data
  })
}

export { getDeviceType, addDeviceType, editDeviceType, delDeviceType }
